/*
**  Copyright (c) 2014 Michael Liu(michael.liu.point@gmail.com).
**
**  Project: Gateway Unified Management Platform
**  File:    eamgr.h
**  Author:  Michael
**  Date:    03/20/2014
**
**  Purpose:
**    extra application management defines.
*/

#ifndef __EXTR_APP_MGR_H__
#define __EXTR_APP_MGR_H__

#ifdef __cplusplus
extern "C" {
#endif				/* __cplusplus */

/* Include files. */

#include "common.h"
#include "cmrc.h"
#include "list.h"

/* Macro constant definitions. */

/* Type definitions. */
	enum {
		eEA_SUB_MOD_SAMBA_MGR,
		eEA_SUB_MOD_FTP_MGR,
		eEA_SUB_MOD_DLNA_MGR,
	} eea_sub_module;

	typedef struct cm_ea_opt_body tcm_ea_req_body;
	typedef struct cm_ea_opt_body tcm_ea_rsp_body;
	struct cm_ea_opt_body {
		unsigned char submod;	/* indicate req_body type:eea_sub_module */
		unsigned char body[0];	/* . */
	};

/* External function declarations. */

	extern e_ret extra_app_proc_req(tcm_req_body * req, tcm_rsp_body ** rsp);

/* Macro API definitions. */

/* Global variable declarations. */

#ifdef __cplusplus
}				/* extern "C" */
#endif				/* __cplusplus */
#endif				/* __EXTR_APP_MGR_H__ */
